<script setup lang="ts">
const props: any = defineProps<{
    ujt: any;
    fn?: any;
}>();
const { $fn } = props.ujt;
</script>
<template>
    <div class="as-lang" @pointerdown="fn ? fn() : $fn.changelang('auto')">
        <slot>{{ $fn.lg('asai.langs.default') }}</slot>
    </div>
</template>

<style scoped lang="scss">
.as-lang {
    display: inline-block;
    width: auto;
    cursor: pointer;
}
</style>
